import numpy as np

array = np.random.randint(low=1, high=1000, size=10)

print(array)


def bubble_sort(a: list) -> object:
    i = 1
    while i < len(a):
        j = i
        while j > 0:
            (a[j], a[j - 1]) = (a[j - 1], a[j]) if a[j - 1] > a[j] else (a[j], a[j - 1])
            j -= 1
        i += 1
    return a


bubble_sort(array)

print(array)
